<!DOCTYPE html>
<html lang="zh-CN">
	<head>
		<meta charset="UTF-8">
		<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
		<link rel="stylesheet" href="../../css/global/mui.css" />
		<link rel="stylesheet" type="text/css" href="../../css/global/public.css"/>
		<link rel="stylesheet" type="text/css" href="../../css/question.css"/>
		<script type="text/javascript" src="../../js/common/common.js"></script>
		<title>问医生</title>
	</head>
<body>
   <form class="askForm">
		<input type="hidden" name="payAmount" id="payAmount" value="" />
		<input type="hidden" name="doctorid" id="doctorid" value="" />
		<input type="hidden" name="orderDetail" id="orderDetail" value="" />
		<input type="hidden" name="serviceTime" value="" />
		<input type="hidden" id="expireTime" name="expireTime" value="" />
		<input type="hidden" name="orderType" id="orderType" value="" />
		<div class="mui-table-view-cell font3" style="margin-bottom: 0.3rem;">
			<font id="textDiv">图文咨询</font>
			<span class="mui-pull-right color_blue" id="showPrice">￥1.00</span>
		</div>
		<!--<div class="question-time">
			<div class="user font3">
				<img src="../../images/consultation.png"/>
				您预约的电话咨询时间为:
				<p><span></span><font class="bd_url font3 textC">修改时间</font></p>
			</div>
			<div class="number font3">
				 	预约成功，届时将呼起电话:
			 	<span></span>
			 	<font class="font1">更换号码</font>
			</div>
		</div>-->
		<div class="mui-table-view font3 phoneService">
	    	<div class="mui-table-view-cell font3" id="userId">
	    		<input type="hidden" id="archivesId" name="archivesId" />
				<font id="textDiv">咨询人</font>
				<span class="mui-pull-right userInfo"><span id="advocateName"></span><span class="advocateSex"></span><span class="advocateAge"></span>＞</span>
			</div>
			<div class="none">
				<div class="mui-table-view-cell">
					您预约的时间<span class="mui-pull-right" id="serviceTime"></span>
				</div>
				<div class="mui-table-view-cell phonePop">
					您预约的电话<span class="mui-pull-right">
						<span id="answerPhone"></span>
			 			<font class="font1 color_blue" style="margin-left: 0.3rem;">更换号码</font>
					</span>
				</div>
			</div>
		</div>
	    <div class="question-box">
			<div class="textarea font3"><textarea class="font3" placeholder="请您详细描述您的性别、年龄、疾病发生的部位,主要症状、持续时间、已就诊的信息和主治医生的建议,您也可以上传症状部位照片或者检查单、完整的病历资料,会得到医生更详细的指导!" name="questionbody" id="questionbody"></textarea></div>
	 
			<div class="upload camera-area">
				<ul class="thumb">
				<!--框-->
						<li class="addFile">
							<div class="add">
								<input type="file" accept="image/*" class="photos fileToUpload" id="fileToUpload" name="fileToUpload" onclick="javascript:this.value=''"  />
							</div>
					</li>
				</ul>
				<p class="font1">
				请上传相关图片(检查单,病历,患处,药品,处方等)</br>馨语会确保您的隐私安全.
				</p>
			</div>
		</div>
   </form>
    <div class="explain font3">
    	<ul class="graphic-consult">
    		<li>咨询说明:</li>
    		<li>1.如有疑问,请拨打027-85690800</li>
    		<li>2.若医生在您发起咨询后24小时内未回复,系统将自动为您退款</li>
    		<li>2.医生回复仅为建议,具体诊疗请前往医院进行.</li>
    	</ul>
    	<ul class="phone-consult">
    		<li>咨询说明:</li>
    		<li>1.支付成功后，我们平台的医生会在预约时间内给您回电</li>
    		<li>2.超过预约时间未回电，平台会自动为您退款</li>
    		<li>3.如有疑问,请拨打027-85690800.</li>
    	</ul>
    </div>
	<div class="question-pay">
		<button id="submitQuestionBtn" class="font3">去提问</button>
	</div>
</body>
</html>
<script type="text/javascript" src="../../js/lib/mui.min.js" ></script>
<script type="text/javascript" src="../../js/module/utilModule.js" ></script> 
<script type="text/javascript" src="../../js/common/config.js"></script>
<script type="text/javascript" src="../../js/lib/zepto.min.js" ></script>
<script type="text/javascript" src="../../js/lib/template.js" ></script>
<script type="text/javascript" src="../../js/module/askDoctorModule.js" ></script>
<script type="text/javascript" src="../../js/module/doctorModule.js" ></script>
<script type="text/javascript" src="../../js/doctor/askdoctor.js" ></script>
<script type="text/javascript" src="../../js/module/orderPayModule.js" ></script>
<script type="text/javascript" src="../../js/common/upload.js" ></script>
<script type="text/javascript">
	$(".camera-area").fileUpload({
				"upload_url": "/att/upload", //上传url
				"remove_url": "/att/delete", //删除url
				"file": "file",
				"all": false, //是否启用压缩 
				"inputName": "questionFiles", //后台Vo对应的属性,
				"complete": function(response, inputID) {
						if(response.status == 200) {
						 //创建input元素
						var inputElement="<input type='hidden' name='questionFiles' id='"+inputID+"' value='"+response.result.fullurl+"' key='"+response.result.filekey+"'/>";
						$("."+inputID).append(inputElement);
						//隐藏进度条
						$("#shadow_"+inputID).hide();
						console.info("文件路径:"+response.result.fullurl);
						console.info("文件key:"+response.result.filekey);
					} else {
						console.error("文件上传失败！");
					}
				}
		});
    var font_btn = $(".phonePop font");
    var input_val = $(".mui-popup-input input");
			font_btn.click(function(){
					input_val.preventDefault; //阻止input默认获取焦点
				
			  	function test() {
			  		  var btnArray = ['取消', '确定'];
				  		mui.prompt('医生将联系此手机','请输入您的手机号','请核对您的手机号',new Array('取消','确定'),function(e){
					        if(e.index == 1){
					    	      if(e.value==""){
						    		    mui.alert("手机号不能为空","提示");
						    		    return false;
					    	      }else if(!(/^1[3|4|5|8][0-9]\d{4,8}$/.test(e.value))){
					    		      mui.alert("手机号码格式有误，请重填","提示");
						       	      return false;
				    			    } 
				    			$("#answerPhone").text(e.value);
				    		}
						});
			  	} 
			  	// 100毫秒后  执行test函数[核对手机号弹窗]
			  	input_val.foucs;//
			  	setTimeout(test,100);
			});	
	$(".bd_url").click(function(){
			var doctor_info = JSON.parse(sessionStorage.getItem("doctor_index"));
			/*var backTo =utilModule.getQueryString("backurl");*/
			window.location.href="doctor-details.html?doctorid="+doctor_info.doctorid;
	});
</script>







